// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/index.css'
import router from './router'
import  img from './assets/icon/returnActionList.png'
import store from './store'//引入store
// import axios from 'axios';
//
// axios.defaults.timeout = 5000;// 在超时前，所有请求都会等待 5 秒
// axios.defaults.baseURL = 'https://api.ylgxjs.com';// 配置接口地址
// axios.defaults.withCredentials = false;
//
// Vue.prototype.$axios = axios;// 将axios配置成vue的原型

Vue.use(ElementUI)

Vue.prototype.returnActionList = function (){
  console.log('返回')
  this.$router.push({path: '/ActionList'})
};
Vue.component('returnActionList',{
  template:`<div style="height: 80px" class="fr itemcenter" >
        <img :src=url style="height: 50px;width:50px;margin-left:20px" @click="returnActionList()"><span  @click="returnActionList()" class="fs35 c-g" >返回</span>
      </div>`,
  data:function () {
    return{
      url:require('./assets/icon/returnActionList.png')
    }
  }
})
Vue.config.productionTip = false
mode: 'history'
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
